    <div class="container margin-top-content">
      <div class="row">
        <div class="col-md-10 col-md-offset-1">
          <div class="col-md-12">
            <div class="row outer-border shadow singlepage">
              
              <div class="col-md-9 padding15">
                <h4 class="font-biru judul-singlepage">News & Events Archive</h4>
				<?php
				if(isset($hasil)){
					foreach($hasil as $val){
					if($val['gambar']==""){
					$gambar="default.jpg";
				}else{
					$gambar=$val['gambar'];
				}
				$path_gambar=base_url()."foto_post/".$gambar;
				?>
                <div class="outer-newsarchive small">
                  <h4><a href="<?php echo site_url('news/'.$val['slug'])?>" ><?php echo $val['judul']?></a></h4>
                  <p class="waktu-posting"><span class="glyphicon glyphicon-time"></span>&nbsp;<?php echo tgl_indonesia($val['tgl_posting']);?></p>
                  <a href="<?php echo site_url('news/'.$val['slug'])?>" ><img src="<?php echo $path_gambar;?>" alt='<?php echo $val['judul'] ?>'></a>
        				  <p>
                    <?php $tmp_konten=strip_tags($val['konten']);
          					$konten = word_limiter($tmp_konten, 20);
          					echo $konten;?>
          				</p>
                  <p>
                    <a href="<?php echo site_url('news/'.$val['slug'])?>" class="btn btn-primary btn-sm">Read more</a>
                  </p>
                <div class="clearfix"></div>
                </div>
                <?php
				}
				}
				?>
                

                <center>
                <?php
                  echo ! empty($pagination) ? '<ul class="pagination">' . $pagination . '</ul>' : '';
                ?>
                </center>

              </div>
              <div class="col-md-3 padding15">
                <?php
                  $this->load->view('sidebar_page');
                ?>
              </div>
            <div class="clearfix"></div>
            </div>
          </div>
        <div class="clearfix"></div>
        </div>
      </div>
    </div><!-- /.container -->